From e5e507e1d4529395e56e58956c4ffeb03ec22b9e Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Tue, 9 Nov 2010 01:25:45 +0900 Subject: [PATCH] Added GtkCellArea classes to gtk.h and fixed a remainig rendering bug. --- gtk/gtk.h | 3 +++ gtk/gtkcellareabox.c | 10 ---------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/gtk/gtk.h b/gtk/gtk.h index 6e99849a1c..115c6c39e4 100644 --- a/gtk/gtk.h +++ b/gtk/gtk.h @@ -52,6 +52,9 @@ #include #include #include +#include +#include +#include #include #include #include diff --git a/gtk/gtkcellareabox.c b/gtk/gtkcellareabox.c index a935c7bfc5..21f84b1dab 100644 --- a/gtk/gtkcellareabox.c +++ b/gtk/gtkcellareabox.c @@ -586,8 +586,6 @@ get_allocated_cells (GtkCellAreaBox *box, return NULL; } - g_print ("Allocating cells for rendering, group allocs %d\n", n_allocs); - for (i = 0; i < n_allocs; i++) { /* We dont always allocate all groups, sometimes the requested group has only invisible @@ -679,8 +677,6 @@ get_allocated_cells (GtkCellAreaBox *box, position += sizes[j].minimum_size; position += priv->spacing; - - j++; } g_free (sizes); @@ -1059,9 +1055,6 @@ gtk_cell_area_box_render (GtkCellArea *area, * of alignments and pack order etc. */ allocated_cells = get_allocated_cells (box, box_iter, widget); - g_print ("Rendering an area with allocated cells %d\n", - g_slist_length (allocated_cells)); - for (l = allocated_cells; l; l = l->next) { AllocatedCell *cell = l->data; @@ -1083,9 +1076,6 @@ gtk_cell_area_box_render (GtkCellArea *area, /* XXX We have to do some per-cell considerations for the 'flags' * for focus handling */ - g_print ("Rendering a cell at x: %d y: %d width %d height %d\n", - inner_area.x, inner_area.y, inner_area.width, inner_area.height); - gtk_cell_renderer_render (cell->renderer, cr, widget, &background_area, &inner_area, flags); -- 2.30.2